package xyz.mirak.spring_beanfactorypostprocessor.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import xyz.mirak.spring_beanfactorypostprocessor.annotation.Transform;

//@Component
//@Transform(type=KarimBeanHolder.class)
public class KarimBeanHolder implements Personne , Sayan ,TestBeanPostProcessorAfterInitialization {

	@Autowired
	@Qualifier("Karim")
	private MegaSuperKarim karim;

	boolean isPostProcessAfterInitialization;

	/*
	 * (non-Javadoc)
	 * 
	 * @see xyz.mirak.spring_beanfactorypostprocessor.bean.
	 * PostProcessAfterInitialization#isPostProcessAfterInitialization()
	 */
	@Override
	public boolean isPostProcessAfterInitialization() {
		return isPostProcessAfterInitialization;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see xyz.mirak.spring_beanfactorypostprocessor.bean.
	 * PostProcessAfterInitialization#setPostProcessAfterInitialization(boolean)
	 */
	@Override
	public void setPostProcessAfterInitialization(boolean isPostProcessAfterInitialization) {
		this.isPostProcessAfterInitialization = isPostProcessAfterInitialization;
	}

	@Override
	public String getName() {
		// TODO Auto-generated method stub
		return "好好";
	}

}
